/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.iftk.xmlparser.domain;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author treiman
 */
public class Diner extends BubbleItem {
    private String name;
    private List<DailyMenu> dailyMenuList;
    
    public Diner(String name) {
        this.name = name;
        dailyMenuList = new ArrayList();
        setBubbleTitle(name);
        if(name.equals("Exactum")) {
            setBubbleShort("Exactum\nLunch: 11.00-14.30");
            setBubbleFull("Exactum\nLunch: 11.00-14.30\nLocated at the basement floor of Exactum");
        }
        else if(name.equals("Chemicum")) {
            setBubbleShort("Chemicum\nNeutroni 11.00-13.00 (mon-fri)\nProtoni 10.30-15.30 (mon-thu)\nProtoni 10.30-15.00 (fri)");
            setBubbleFull("Chemicum\nLunch Neutroni 11.00-13.00 (mon-fri)\nLunch Protoni 10.30-15.30 (mon-thu) 10.30-15.00 (fri)");
        }

    }

    public List<DailyMenu> getDailyMenuList() {
        return dailyMenuList;
    }

    public void setDailyMenuList(List<DailyMenu> dailyMenuList) {
        this.dailyMenuList = dailyMenuList;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    @Override
    public String toString() {
        StringBuilder result = new StringBuilder();
        String NEW_LINE = System.getProperty("line.separator");
        
        result.append(this.getClass().getName()).append("Object {").append(NEW_LINE);
        result.append(" ID: ").append(getId()).append(NEW_LINE);
        result.append(" Name: ").append(name).append(NEW_LINE);
        result.append(" Links: ");
        for(Integer i : getLinks()) {
            result.append(i).append("\t");
        } 
        result.append(NEW_LINE);        
        result.append("}");
        
        return result.toString();
    }
    
}
